package cn.hengzhu.main_manager.repository.dao;

import cn.hengzhu.main_manager.repository.domain.ManageRoles;
import cn.hengzhu.main_manager.repository.domain.ManageRolesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ManageRolesMapper {
    /**
     *
     * @mbg.generated
     */
    long countByExample(ManageRolesExample example);

    /**
     *
     * @mbg.generated
     */
    int deleteByExample(ManageRolesExample example);

    /**
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer roleId);

    /**
     *
     * @mbg.generated
     */
    int insert(ManageRoles record);

    /**
     *
     * @mbg.generated
     */
    int insertSelective(ManageRoles record);

    /**
     *
     * @mbg.generated
     */
    List<ManageRoles> selectByExample(ManageRolesExample example);

    /**
     *
     * @mbg.generated
     */
    ManageRoles selectByPrimaryKey(Integer roleId);

    /**
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") ManageRoles record, @Param("example") ManageRolesExample example);

    /**
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") ManageRoles record, @Param("example") ManageRolesExample example);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(ManageRoles record);

    /**
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(ManageRoles record);
    
    String getPermssion(@Param("managerId") Integer managerId);

	List<ManageRoles> getAllRolesByComId(@Param("compId") Integer compId);
}